package com.blrs.mapper;

import java.util.List;
import com.blrs.domain.PolicyRelease;

/**
 * 政策发布Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-09
 */
public interface PolicyReleaseMapper 
{
    /**
     * 查询政策发布
     * 
     * @param permissionId 政策发布主键
     * @return 政策发布
     */
    public PolicyRelease selectPolicyReleaseByPermissionId(String id);

    /**
     * 查询政策发布列表
     * 
     * @param policyRelease 政策发布
     * @return 政策发布集合
     */
    public List<PolicyRelease> selectPolicyReleaseList(PolicyRelease policyRelease);

    /**
     * 新增政策发布
     * 
     * @param policyRelease 政策发布
     * @return 结果
     */
    public int insertPolicyRelease(PolicyRelease policyRelease);

    /**
     * 修改政策发布
     * 
     * @param policyRelease 政策发布
     * @return 结果
     */
    public int updatePolicyRelease(PolicyRelease policyRelease);

    /**
     * 删除政策发布
     * 
     * @param permissionId 政策发布主键
     * @return 结果
     */
    public int deletePolicyReleaseByPermissionId(String permissionId);

    /**
     * 批量删除政策发布
     * 
     * @param permissionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePolicyReleaseByPermissionIds(String[] permissionIds);

    String selectIsSend(String id);

    int updatePolicyStatus(String id);

    List<PolicyRelease> selectPolicyReleaseListByReceiveId(PolicyRelease policyRelease);

    int updatePolicyReleaseByStatus(PolicyRelease policyRelease);
}
